package cn.yangliu.jpa.enums;

/**
 * The interface Query type enum.
 *
 * @author 问道于盲
 * @date 2019 -06-12
 */
public enum QueryTypeEnum {

    /**
     * 查询方式
     */
    LIKE("like"),
    /**
     * 以什么开头
     */
    STARTWITH("like"),
    /**
     * 以什么结尾
     */
    ENDWITH("like"),
    /**
     * Eq query type enum.
     */
    EQ("="),
    /**
     * Lt query type enum.
     */
    LT("<"),
    /**
     * Gt query type enum.
     */
    GT(">"),
    /**
     * Lte query type enum.
     */
    LTE("<="),
    /**
     * Gte query type enum.
     */
    GTE(">="),
    /**
     * Noteq query type enum.
     */
    NOTEQ("!="),
    /**
     * In query type enum.
     */
    IN("in"),
    ;


    /**
     * current class instance's member.
     * The Symbol.
     */
    private String symbol;

    /**
     * Instantiates a new Query type enum.
     *
     * @param symbol the symbol
     */
    QueryTypeEnum(String symbol){
        this.symbol = symbol;
    }

    /**
     * Symbol string.
     *
     * @return the string
     */
    public String symbol() {
        return symbol;
    }
}
